package com.signway.module_signway_adapter_common_3.constant;

public class ScreenResolutionBean {
    /**
     *
     * @param resolution 屏幕分辨率
     * @return 转化成对应的数字
     */
    public int screenResolution(String resolution){
        int status=-1;
        switch(resolution){
            case "1920x1080@50":
                status=0;
                break;
            case "1920x1080@60":
                status=1;
                break;
            case "1366x768@50":
                status=2;
                break;
            case "1366x768@60":
                status=3;
                break;
            case "1280x720@50":
                status=4;
                break;
            case "1280x720@60":
                status=5;
                break;
            case "1024x768@50":
                status=6;
                break;
            case "1024x768@60":
                status=7;
                break;
            case "1600x900@50":
                status=8;
                break;
            case "1600x900@60":
                status=9;
                break;
            case "1440x900@50":
                status=10;
                break;
            case "1440x900@60":
                status=11;
                break;
            case "1680x1050@50":
                status=12;
                break;
            case "1680x1050@60":
                status=13;
                break;
            case "1360x768@50":
                status=14;
                break;
            case "1360x768@60":
                status=15;
                break;
            case "1280x1024@50":
                status=16;
                break;
            case "1280x1024@60":
                status=17;
                break;
            case "1280x800@50":
                status=18;
                break;
            case "1280x800@60":
                status=19;
                break;
            case "1920x1200@50":
                status=20;
                break;
            case "1920x1200@60":
                status=21;
                break;
        }
        return status;
    }


    public int screenResolutionHDMI(String resolution){
        int status=-1;
        switch(resolution){
            case "1920x1080@50":
                status=32;
                break;
            case "1920x1080@60":
                status=33;
                break;
            case "1366x768@50":
                status=34;
                break;
            case "1366x768@60":
                status=35;
                break;
            case "1280x720@50":
                status=36;
                break;
            case "1280x720@60":
                status=37;
                break;
            case "1024x768@50":
                status=38;
                break;
            case "1024x768@60":
                status=39;
                break;
            case "1600x900@50":
                status=40;
                break;
            case "1600x900@60":
                status=41;
                break;
            case "1440x900@50":
                status=42;
                break;
            case "1440x900@60":
                status=43;
                break;
            case "1680x1050@50":
                status=44;
                break;
            case "1680x1050@60":
                status=45;
                break;
            case "1360x768@50":
                status=46;
                break;
            case "1360x768@60":
                status=47;
                break;
            case "1280x1024@50":
                status=48;
                break;
            case "1280x1024@60":
                status=49;
                break;
            case "1280x800@50":
                status=50;
                break;
            case "1280x800@60":
                status=51;
                break;
            case "1920x1200@50":
                status=52;
                break;
            case "1920x1200@60":
                status=53;
                break;
        }
        return status;
    }
}